package com.group3.dao;

import com.group3.domain.Work;
import com.group3.domain.WorkExample;
import java.util.List;

import com.group3.pojo.result.LessonResult;
import com.group3.pojo.result.StudentWorkResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WorkMapper {
    long countByExample(WorkExample example);

    int deleteByExample(WorkExample example);

    int deleteByPrimaryKey(Integer workId);

    int insert(Work record);

    int insertSelective(Work record);

//    List<Work> selectByExampleWithBLOBs(WorkExample example);

    List<Work> selectByExample(WorkExample example);

    Work selectByPrimaryKey(Integer workId);

    int updateByExampleSelective(@Param("record") Work record, @Param("example") WorkExample example);

//    int updateByExampleWithBLOBs(@Param("record") Work record, @Param("example") WorkExample example);

    int updateByExample(@Param("record") Work record, @Param("example") WorkExample example);

    int updateByPrimaryKeySelective(Work record);

//    int updateByPrimaryKeyWithBLOBs(Work record);

    int updateByPrimaryKey(Work record);

//-----------------
    List<StudentWorkResult> selectWorkInfo(WorkExample example);
}